package com.rj.bd.sp.service;

import java.util.List;
import java.util.Map;
import java.util.UUID;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import com.rj.bd.sp.dao.SpMapper;
import com.rj.bd.sp.entity.Sp;

@Transactional
@Service("spService")//该注解的意思为标识出当前的类/模块是一个M层，且当前这个Service的值为spService
public class SpServiceLmpl   implements   ISpService{

	@Autowired
	private SpMapper spMapper;
	
	
	
	public List<Sp> findAll() {
		
		return spMapper.fiandAll();
	}

	@Override
	public void del(Sp sp) {
		
		spMapper.delete(sp);
	}


	public void save(Sp s) {
		spMapper.save(s);		
	}

	@Override
	public void update(Sp sp) {
		spMapper.update(sp);
		
	}















}
